package cn.cimoc.mapper;

import cn.cimoc.model.po.TPermission;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author LGZ
 * @date 2021/11/21 14:15
 */
@Repository
public interface PermissionMapper extends BaseMapper<TPermission> {
    /**
     * <p>
     * 根据角色名查询所有权限
     * @param roleName 角色名
     * @return 权限列表
     */
    List<TPermission> findPermissionByRoleName(@Param("roleName")String roleName);
}
